﻿/*
 * @Author: Starfish_DL
 * @Date: 2020-11-21 23:12:39
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-11-22 19:38:46
 * @CurrentVersion: 1.0
 * @Description:
 */

#include "AdjGraph.h"
using namespace std;

int map[6][6] =
{
    {1, 1, 1, 1, 1, 1},
    {1, 0, 0, 0, 1, 1},
    {1, 0, 1, 0, 0, 1},
    {1, 0, 0, 0, 1, 1},
    {1, 1, 0, 0, 0, 1},
    {1, 1, 1, 1, 1, 1} };

int main()
{
    MatGraph *m =new MatGraph(map, 6);
    AdjGraph a = AdjGraph(m);
    a.BFSMap(Box(1,1),Box(4,4));
    //a.DispGraph();
}
